package com.javacore;


import java.util.*;

public class Main {
    public static void main(String[] args){
//        Scanner scanner = new Scanner(System.in);
//        String[] splitStr = scanner.nextLine().split("[^a-zA-Z]"); //非字母都用作分隔符
//
//
//        System.out.println(Arrays.toString(splitStr));
//
//        StringBuilder str = new StringBuilder();
//        for (int i = splitStr.length - 1; i >= 0; i--) {
//            str.append(splitStr[i]);
//            if(i != 0) {
//                str.append(" ");
//            }
//        }
//        System.out.println(str.toString());
        //split工作原理，我大概明白了
        String str = "javaAAjowZZZofjw";

        String[] split = str.split("[A-Z]");

        System.out.println(Arrays.toString(split));


        Collections.shuffle(new ArrayList<Integer>());









    }
}
